<script>
     function submitMysqlForm(){
    var fromIdBase = 'ajaxForm';

    $('#'+fromIdBase).form('submit', {  
        url: '__URL__/query',
        onSubmit:function(){    
            return $(this).form('validate');    
        },    
        success:function(data){  
            var obj = eval("("+data+")");
            if(obj.status == 0 ){
                $('#results span').html('What are you doing ??');
            } else {
                $('#results span').html('Good boy~');
                $('txt').val('');
                var sql = eval("("+obj.info+")");
                $.each(sql, function(k, v){
                    v = '<p>'+v+'</p>';
                    $('#back').append(v);
                })
            }
            
            
            
        }    
    });
}
</script>
<div class="easyui-layout" style="width:100%;height:100%;"  fit="true"   scroll="no" id="main">
    <div data-options="region:'center', border:false" style=" padding: 10px">
        <form id="ajaxForm" method="post">
            <input type="hidden" name="ajax" value="1" id="ajax"/>
            <ul class="form-list">
                <li class="fix">
                    <label for="sql">SQL:</label>
                    <div class="input-box">
                        <textarea name="sql" style="height:400px; width: 99%" id="txt"></textarea>
                    </div>
                </li>
                <li class="fix">
                    <label for="code">CODE:</label>
                    <div class="input-box">
                        <input type="password" name="code" class="input-text" />
                    </div>
                </li>
            </ul>
            <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="submitMysqlForm()">Query</a>
        </form>
    </div>
    <div data-options="region:'north',split:true" style="height:56px;padding:10px; border: 1px solid #eee; ">

        # result is:
        <div id="results"># <span></span></div>
    </div>
    <div data-options="region:'south',split:true" style="height:200px;padding:10px; border: 1px solid #eee; ">
        <div id="back" style="color:#156E03"></div>
    </div>
</div>